package com.tianlh.dto;

import java.math.BigDecimal;

import lombok.Data;

/**
 * Created by wb-tianlihui on 2017/11/25.
 */
@Data
public class Zoo {

    private String zooName;

    private String zooAddress;

    private Animal anima;

    @Data
    public class Animal {

        private String animalName;
        private int age;
    }

    public static boolean isOdd(int i) {
        System.out.println(i % 2);
        return i % 2 == 1;
    }

    public static void main(String[] args) {
        System.out.println(2 - 1.10);
        System.out.println(new BigDecimal("2").add(new BigDecimal("1.16")).setScale(1, BigDecimal.ROUND_UP));
    }
}
